package com.zhouyu;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener;

@ComponentScan("com.zhouyu.ten")
@Configuration
public class AppConfig10 {


	@EventListener
	public void test(ApplicationEvent applicationEvent){
		PayloadApplicationEvent applicationEvent1 = (PayloadApplicationEvent) applicationEvent;
		System.out.println(applicationEvent1.getPayload());
	}


}
